<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<t:base type="jquery,easyui,tools,DatePicker"></t:base>
<div class="easyui-layout" fit="true">
    <div region="center" style="padding:1px;">
        <t:datagrid name="zyEquipmentTypeList" checkbox="false" fitColumns="false" title="发货备件" treegrid="true" pagination="false" onDblClick="dbClick"
                    actionUrl="cbsDelinerController.do?datagridOfChooseDeliverEquipment" idField="id" fit="true" queryMode="group">
            <t:dgCol title="主键"  		field="id" treefield="id"  hidden="true"  queryMode="single"  width="120"></t:dgCol>
            <t:dgCol title="备件名"	field="typeDesc" treefield="text" queryMode="single"  width="400"></t:dgCol>
        </t:datagrid>
    </div>
</div>
<script type="text/javascript">
    function dbClick(node){
        if(!node.hasLeaf){
            $("#typeId",top.myWindow.document).val(node.id);
            $("#typeName",top.myWindow.document).val(node.text);
            frameElement.api.close();
        }else{
            tip("请选择正确的机型");
        }
    }
</script>